<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Veterinaria.modelo.Factura"%>
<html>
<head>
<script type="text/javascript" src="js/jquery-1.2.js"></script>
<script type="text/javascript" src="js/ingrid.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script language="javascript">
var Url = location.href;
Url = Url.replace(/.*\?(.*?)/,"$1");
Variables = Url.split ("&");
for (i = 0; i < Variables.length; i++) {
       Separ = Variables[i].split("=");
       eval ('var '+Separ[0]+'="'+Separ[1]+'"');
}

//alert(id);
</script>

<title>Detalle Factura</title>
<style type="text/css">


<!--
.Estilo1 {	font-family: Tahoma;
	font-weight: bold;
	font-size: 18px;
}
.Estilo4 {font-family: Tahoma; font-weight: bold; font-size: 12px; }
.Estilo5 {font-family: Tahoma;  font-size: 10px;}
-->
</style>
</head>
<body>

<p align="center"  class="Estilo4">Detalle de Factura </p>
            <table id="MiTabla" width="819" border="0" align="center">
              <tr bgcolor="#CCCCCC" class="Estilo4">
                <td><div align="center">Item</div></td>
                <td><div align="center">idArticulo</div></td>
                <td><div align="center">Detalle</div></td>
                <td><div align="center">Cantidad</div></td>
                <td><div align="center">Total</div></td>
                
              </tr>
              <%@page import="java.util.*, Veterinaria.modelo.DetalleFactura" %>
			<%
			Collection<DetalleFactura> arreglo = (ArrayList<DetalleFactura>)request.getAttribute("detalle");
			if(arreglo != null) { 
			int i = 1;
			for(DetalleFactura x : arreglo) {
			%>  
			
			  <tr class="Estilo5">
			   
			    <td><div align="center"><% out.print(x.getSecuencial()); %></div></td>
			    <td><div align="center"><% out.print(x.getoArticulo().getCod_articulo()); %></div></td>
			    <td><% out.print(x.getoArticulo().getDescripcion()); %></td>
			    <td><div align="center"><% out.print(x.getCantidad()); %></div></td>
			    <td><div align="right"><% out.print(x.getTotal()); %></div></td>
			    
			         
			    		       
			     <td>&nbsp;</td>
			     <td>&nbsp;</td>
			  </tr>
			 
			<% }  
			  } %>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>
</body>
</html>